package net.tatu.service.impl;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import net.tatu.dao.OrgBusinessTargetRelaMapper;
import net.tatu.dao.PubCodeMapper;
import net.tatu.dao.SysLogMapper;
import net.tatu.dao.UserMapper;
import net.tatu.model.OrgBusinessTargetRela;
import net.tatu.model.PubCode;
import net.tatu.model.SysLog;
import net.tatu.model.User;
import net.tatu.service.OrgBusinessTargetRelaService;
import net.tatu.service.PubCodeService;
import net.tatu.service.SysLogService;
import net.tatu.service.UserService;
import net.tatu.util.Encrypt;
import net.tatu.util.Util;

@Service
public class OrgBusinessTargetRelaServiceImpl implements OrgBusinessTargetRelaService {
	Logger log = Logger.getLogger(OrgBusinessTargetRelaServiceImpl.class);
	@Autowired
	private OrgBusinessTargetRelaMapper orgBusinessTargetRelaMapper;
	@Override
	public List<OrgBusinessTargetRela> getOrgBusinessTargets(
			OrgBusinessTargetRela orgBusinessTargetRela) {
		List<OrgBusinessTargetRela> list = orgBusinessTargetRelaMapper.getOrgBusinessTargets(orgBusinessTargetRela);
		return list;
	}
	@Override
	public int insertOrgBusinessTarget(
			OrgBusinessTargetRela orgBusinessTargetRela) {
		int i = orgBusinessTargetRelaMapper.insertOrgBusinessTarget(orgBusinessTargetRela);
		return i;
	}
	@Override
	public int updateOrgBusinessTarget(
			OrgBusinessTargetRela orgBusinessTargetRela) {
		int i = orgBusinessTargetRelaMapper.updateOrgBusinessTarget(orgBusinessTargetRela);
		return i;
	}
	
}
